package com.ruiyi.adrobot.web.controller.device;

import com.ruiyi.adrobot.mongo.device.DeviceRepository;
import com.ruiyi.adrobot.service.device.DeviceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Created by tao.zeng on 2017/5/12.
 */
@Controller
@RequestMapping("/device")
public class DeviceController {
    @Autowired
    private DeviceService deviceService;

    @GetMapping("/buildDevices")
    public String buildDevices() {
        //deviceService.resolveTxt();
        //deviceService.buildBaseDevices_v1();
        // 构建设备型号
        //deviceService.buildModels();
        //deviceService.updateVirtualTrueInfo();
        //deviceService.buildVirtualDevice();
        return "admin/robot_info_list";
    }

}
